package fimuni.pb138.repositar;

import java.util.List;

public class XSDFile {
	private long id;
	private long version;
	private String name;
	private String fileName;
	private List<String> simpleTypes;
	private List<String> complexTypes;
	private List<String> attributes;
	private List<String> elements;
	
	
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public long getVersion() {
		return version;
	}
	public void setVersion(long version) {
		this.version = version;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<String> getSimpleTypes() {
		return simpleTypes;
	}
	public void setSimpleTypes(List<String> simpleTypes) {
		this.simpleTypes = simpleTypes;
	}
	public List<String> getComplexTypes() {
		return complexTypes;
	}
	public void setComplexTypes(List<String> complexTypes) {
		this.complexTypes = complexTypes;
	}
	public List<String> getAttributes() {
		return attributes;
	}
	public void setAttributes(List<String> attributes) {
		this.attributes = attributes;
	}
	public List<String> getElements() {
		return elements;
	}
	public void setElements(List<String> elements) {
		this.elements = elements;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (id ^ (id >>> 32));
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		XSDFile other = (XSDFile) obj;
		if (id != other.id)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "XSDFile [id=" + id + ", version=" + version + ", name=" + name
				+ ", simpleTypes=" + simpleTypes + ", complexTypes="
				+ complexTypes + ", attributes=" + attributes + ", elements="
				+ elements + ", fileName=" + fileName + "]";
	}
}
